class MoonPhaseType {
   static const int newMoon = 1;
   static const int waxingCrescent = 2;
   static const int first = 3;
   static const int waxingGibbous = 4;
   static const int full = 5;
   static const int warningGibbous = 6;
   static const int last = 7;
   static const int warningCrescent = 8;

  static getType(String s) {
    var lowCase = s.toLowerCase();
    switch (lowCase) {
      case 'waning crescent':
      case '残月':
        return warningCrescent;
      case 'new noon':
      case '新月':
        return newMoon;
      default:
        return -1;
    }
  }
}
